From 67ad13daaaf8d3dee5a1c7643d9c489ef7bc125d Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Fri, 19 Nov 2021 06:48:53 -0700 Subject: [PATCH] Pick up fit locations test case (#766) * Add support for Locations.fit files * patch by tsteven4 to address review comments * Add a test case for Locations.fit files from Garmin devices Co-authored-by: Fabrizio Gennari --- reference/track/fitlocations-sample.fit | Bin 0 -> 286 bytes reference/track/fitlocations-sample.gpx | 17 +++++++++++++++++ testo.d/garmin_fit.test | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 reference/track/fitlocations-sample.fit create mode 100644 reference/track/fitlocations-sample.gpx diff --git a/reference/track/fitlocations-sample.fit b/reference/track/fitlocations-sample.fit new file mode 100644 index 0000000000000000000000000000000000000000..1ab42e201449faed621d95602d106cef1bf20d12 GIT binary patch literal 286 zcmd-RkmTTFWMI&9^9*s>?7#p7?941ZEG%v8ENzTTElf-;tV}HoKoy5$;*S1@0!D_z z-2eY`I5IF8GB7bPwJ{jrXjharUlWIo6ZqyeT^Kx4x)6BU9}lM;(d zG86Oi6&M(7*2pltTg1l85XYb*^8bHuer~ElQDR<7ey&0R& + + + + + Posizione 008 + Posizione 008 + Posizione 008 + + + 531.200 + Via Sebastiano + Some random position in the centre of a small tow + Some random position in the centre of a small tow + + + diff --git a/testo.d/garmin_fit.test b/testo.d/garmin_fit.test index a2a5a71da..559f09e01 100644 --- a/testo.d/garmin_fit.test +++ b/testo.d/garmin_fit.test @@ -29,6 +29,10 @@ compare ${REFERENCE}/track/garmin-oregon-700-output.gpx ${TMPDIR}/fit-sample-gar gpsbabel -i garmin_fit,recoverymode -f ${REFERENCE}/track/lezyne_super_gps-garmin_fit-sample-bad-endian.fit -o gpx -F ${TMPDIR}/lezyne_super_gps-garmin_fit-sample-bad-endian.gpx 2>/dev/null compare ${REFERENCE}/track/lezyne_super_gps-garmin_fit-sample-bad-endian.gpx ${TMPDIR}/lezyne_super_gps-garmin_fit-sample-bad-endian.gpx +# fitlocations-sample.fit is from a Garmin Edge Explore, edited to remove sensitive data. +gpsbabel -i garmin_fit -f ${REFERENCE}/track/fitlocations-sample.fit -o gpx -F ${TMPDIR}/fitlocations-sample.gpx +compare ${REFERENCE}/track/fitlocations-sample.gpx ${TMPDIR}/fitlocations-sample.gpx + gpsbabel -i garmin_fit -f ${REFERENCE}/Lctns_Instinct.fit -o unicsv,utc=0 -F ${TMPDIR}/Lctns_Instinct.csv compare ${REFERENCE}/Lctns_Instinct.csv ${TMPDIR}/Lctns_Instinct.csv -- 2.30.2